package com.larry.hbase;

import org.junit.Test;

import java.io.IOException;

/**
 * @ProjectName hadoop
 * @Author larry
 * @Date 11:45 2021/12/9
 * @Description TODO
 **/
public class TestHbase {
    @Test
    public void test_DDL() throws Exception {
        //createNameSpace("mydb1");

        Hbase_DDL.createTable("","t1","info1","info2");

        //existTable("","t1");

        //Hbase_DDL.dropTable("","t1");
    }

    @Test
    public void test_DML() throws IOException {
        //Hbase_DML.putData("","t1","1001","info1","name","zhangsan");
        //Hbase_DML.putData("","t1","1001","info1","age","18");
        //Hbase_DML.putData("","t1","1001","info2","address","beijing");

        Hbase_DML.putData("","t1","1003","info1","name","li");
        Hbase_DML.putData("","t1","1003","info1","age","20");
        Hbase_DML.putData("","t1","1003","info2","address","tianjin");

        //Hbase_DML.getData("","t1","1001","","");

        Hbase_DML.scanData("","t1","","");
    }
}
